﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.ExceptionServices;
using System.Text;

namespace MishraReader
{
    public class ErrorService : IErrorService
    {
        public void DisplayErrorMessage(string message)
        {
            MessageBoxService.ShowMessage(message);
        }

        public void HandleException(Exception ex)
        {
            if (!Debugger.IsAttached)
            {
                MessageBoxService.ShowMessage(ex.Message);
            }
            else
            {
                Debugger.Break();
            }
        }
    }
}